var mongoose =require('mongoose');
var Schema = mongoose.Schema;
/**
 * 人员关系
 * @type {Schema}
 */
var Relation = new Schema({
    userone: {type: String},// 人员主
    usertwo: {type: String},// 人员次
    tag: [{type: String}],// 标签
    weight: {type: Number, default: 1},// 权重
    recentAct: [{type: Schema.Types.Mixed}],//最近共同参与的活动
    sameFaction: [{type: Schema.Types.Mixed}]//同在的圈子
})

mongoose.model('Relation', Relation);